<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <script>
        let arr = [1,'hello',true,null];
        arr[-1] = '张三';
        arr['姓名'] = '李四';
        console.log(arr);
        console.log(arr['姓名']);
        console.log(arr[-1]);
        console.log(arr.length)

        arr.push(111);
    </script>

    <!-- <script>
        let arr = [1,'hello',true,null];
        console.log(arr);
        console.log(arr[20]);
        console.log(arr[1]);
        console.log(arr[2]);
        console.log(arr[3]);
        arr[20] = '王五';
    </script> -->

    <!-- <script>
        let a = 10;
        let b = '10';
        console.log(a === b);
    </script> -->

    <!-- <script>
        console.log(typeof(null));
        console.log(typeof(undefined));
    </script> -->
    <!-- <script>
        console.log("hello");
        console.log("hello");
    </script> -->

    <!-- <script src="Demo.js"></script>

    <div onclick="alert('点就点,能咋滴')">点我试试</div> -->
        <!-- <Script>
            alert("Hello World");
        </Script> -->
</body>
</html>